<Router AppAssembly="@typeof(Program).Assembly">
    <Found Context="routeData">
        <AuthorizeRouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)">
            <Authorizing>
                Authorizing...
            </Authorizing>
            <NotAuthorized>
                <RedirectToLogin />
            </NotAuthorized>
        </AuthorizeRouteView>
    </Found>
    <NotFound>
        <CascadingAuthenticationState>
            <LayoutView Layout="@typeof(LoginLayout)">
                <Result Status="404"
                        Title="404"
                        SubTitle="Sorry, the page you visited does not exist.">
                </Result>
            </LayoutView>
        </CascadingAuthenticationState>
    </NotFound>
</Router>